package bean;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component //扫描注入bean  等价于<bean id="hello" class="bean.Hello"></bean>
@Data
public class Hello {
        @Value("haha")
        private String name;
}
